<?php
require('../kernel/config.php');
$o_Dir = new  ABDir(PATH_ABS.'/resource', '/.*(.jpg|.png|.gif)$/i');
$a_file = $o_Dir->ls();
$a_temp = array();
foreach($a_file as $value){
	$value['url'] = HOST_NAME.'resource/'.$value['name'];
	$a_temp[] = $value;
}
echo json_encode($a_temp);
?>
